package cn.cheln.explorer.funcgroup;

import cn.cheln.explorer.beans.FileUtil;
import cn.cheln.explorer.beans.ReportInfo;
import cn.cheln.explorer.ds.sdcard.TypeFilter;
import cn.cheln.explorer.ds.sdcard.TypeFilter.TextWrapper;
import java.io.File;
import java.util.LinkedHashSet;
import java.util.Set;

public class EmptyDirectoryCleaner extends TypeFilter
{
  public static boolean cleanSatrt;
  public static Set<ReportInfo> cleanedEntities = new LinkedHashSet();
  private String[] namelist;
  String postfix;

  public EmptyDirectoryCleaner(Integer[] paramArrayOfInteger, TypeFilter.TextWrapper[] paramArrayOfTextWrapper, String[] paramArrayOfString)
  {
    super(paramArrayOfInteger, paramArrayOfTextWrapper, paramArrayOfString);
  }

  public static void clearCleanData()
  {
    cleanedEntities.clear();
  }

  public static int getCleanedCount()
  {
    return cleanedEntities.size();
  }

  public boolean accept(File paramFile)
  {
    if ((super.accept(paramFile)) && (paramFile.isDirectory()))
    {
      String str = FileUtil.getName(paramFile.getAbsolutePath().toUpperCase());
      this.postfix = str;
      if ((!(str.equalsIgnoreCase("LEWA/THEME"))) && (!(this.postfix.equalsIgnoreCase(".NOMEDIA"))))
      {
        this.namelist = paramFile.list();
        if ((this.namelist != null) && (this.namelist.length != 0))
          break label106;
        cleanedEntities.add(new ReportInfo(paramFile.getName(), paramFile.getAbsolutePath()));
        paramFile.delete();
      }
    }
    return false;
    label106: paramFile.listFiles(this);
    return false;
  }
}

/* Location:           H:\360云盘\lewa_explorer_3.0\bin\FileApp_orig_dex2jar.jar
 * Qualified Name:     cn.cheln.explorer.funcgroup.EmptyDirectoryCleaner
 * JD-Core Version:    0.5.2
 */